using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPsEmpContact")]
    public class PsEmpContact
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ContactId", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public int ContactId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public int EmpId { get; set; }

		[ForeignKey("NamePrefix")]
		[DataMember, Display(Name = "NamePrefixId", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public Nullable<int> NamePrefixId { get; set; }

		[DataMember, Display(Name = "ContactName", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string ContactName { get; set; }

		[DataMember, Display(Name = "ContactLastName", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string ContactLastName { get; set; }

		[ForeignKey("Fam")]
		[DataMember, Display(Name = "FamId", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public Nullable<int> FamId { get; set; }

		[DataMember, Display(Name = "ContactCareer", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string ContactCareer { get; set; }

		[DataMember, Display(Name = "ContactAddress", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string ContactAddress { get; set; }

		[ForeignKey("District")]
		[DataMember, Display(Name = "DistrictId", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public Nullable<int> DistrictId { get; set; }

		[DataMember, Display(Name = "ContactPostalCode", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string ContactPostalCode { get; set; }

		[DataMember, Display(Name = "Tel", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string Tel { get; set; }

		[DataMember, Display(Name = "Mobile", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string Mobile { get; set; }

		[DataMember, Display(Name = "Email", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string Email { get; set; }

		[DataMember, Display(Name = "ContactStatus", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string ContactStatus { get; set; }

		[DataMember, Display(Name = "Citizen", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string Citizen { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }


		[DataMember, Display(Name = "HrmPsEmployees", ResourceType = typeof(Resources.PsEmpContactsResource))]
        public virtual Employee HrmPsEmployees { get; set; }

		public virtual Employee Emp { get; set; }

		public virtual HRM.MasNamePrefix NamePrefix { get; set; }

		public virtual HRM.MasFamilyhood Fam { get; set; }

		public virtual HRM.MasDistrict District { get; set; }

    }
}